import React from 'react'
import { Redirect, Route, Switch } from 'react-router-dom'

import PatientList from '../pages/Patient/List'
import Consultation from '../pages/Patient/Consultation'
import PatientCreate from '../pages/Patient/Create'
import PatientQuery from '../pages/Patient/Query'

import BloodSugar from '../pages/Monitor/BloodSugar'
import BloodGas from '../pages/Monitor/BloodGas'
import Heart from '../pages/Monitor/Heart'
import BloodClotting from '../pages/Monitor/BloodClotting'

import Atlas from '../pages/DeptReport/Atlas'
import BSReport from '../pages/DeptReport/BSReport'
import BGReport from '../pages/DeptReport/BGReport'
import HeartReport from '../pages/DeptReport/HeartReport'
import BCReport from '../pages/DeptReport/BCReport'
import Workload from '../pages/DeptReport/Workload'

function RouteComp() {
  return (
    <Switch>
      <Route path='/patient/list' component={PatientList} />
      <Route path='/patient/consultation' component={Consultation} />
      <Route path='/patient/create' component={PatientCreate} />
      <Route path='/patient/query' component={PatientQuery} />

      <Route path='/monitor/blood_sugar' component={BloodSugar} />
      <Route path='/monitor/blood_gas' component={BloodGas} />
      <Route path='/monitor/heart' component={Heart} />
      <Route path='/monitor/blood_clotting' component={BloodClotting} />

      <Route path='/dept_report/atlas' component={Atlas} />
      <Route path='/dept_report/bs_report' component={BSReport} />
      <Route path='/dept_report/bg_report' component={BGReport} />
      <Route path='/dept_report/heart_report' component={HeartReport} />
      <Route path='/dept_report/bc_report' component={BCReport} />
      <Route path='/dept_report/workload' component={Workload} />

      <Redirect to='/patient/list' />
    </Switch>
  )
}

export default RouteComp
